



<?php if($list){?>
<div class="main">


    <div class="wind_zong">
  
      <volist name="list" id="r"  key="k">
          <div class="wind_xglist2">
           <a href="index.php?g=Home&m=Case&a=show&id={$r.id}" id="keep_url"> <img width="258" height="220"  src="{$r.thumb_list}" /></a>
            <ul>
              <li class="wind_xglist2son1">{$r.title}</li>
              <li class="wind_xglist2son2">
                <span>{$r['createtime']|remianday=###}</span>
                <span style="float:right;">
                  <a class="wind_xglist2son2a1">&nbsp;&nbsp;{$r.hits}</a>
                  <a class="wind_xglist2son2a2">&nbsp;{$r.com_num}</a>
                  <a href="javascript:onclick=keep({$r.id})" class="wind_xglist2son2a3" >&nbsp;{$r.keep_num}</a>
                </span>
              </li>
            </ul>
          </div>
       </volist>
      
      
      
      <div style="clear:both;"></div>
<ul class="paging" style=" height:30px; text-align:center">
            <ul>
          <?php echo $pages ?>
           </ul>
        </ul>
          
  </div>
    
    
</div>
<?php }else{?> 

<div class="main" style=" height:200px; font-size:24px; color:#999; text-align:center">


    <ul class="case" id="{}" style="margin-top:100px;">
     对不起，没有找到：{$seo_title}的相关结果
    </ul>
</div>


<?php }?>

<script>
function  keep(id){
	
	
		  var module='Case';
		  var catid='2'
		  var url=$("#keep_url").attr('href');
		  var title=$(".wind_xglist2son1").html();
		 
      //alert(title);
		  //var userid=$("#keep_u").attr('name');
		 // alert(userid)
	
		  $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				   'catid':2
				  },
				  function(res){
					 if(res.length>1000){
						alert('您还未登录，请您先登录');
						 } else{
							 alert(res);
							 if(res=='收藏成功!'){
							  var keepnum=parseInt($(".wind_xglist2son2a3").html())+1;
							  $(".wind_xglist2son2a3").html(keepnum);
							  }
						 }
					 
					});
	  
	}





</script>